<?php
	$sql="select type, time, number, data from ssc_data where type={$args[0]}";
	$sql=$sql." order by number desc";
	$data=$this->getPage($sql, $this->page, $this->pageSize);
    $typename=$this->getValue("select title from ssc_type where id=?",$args[0]);
?>
<?php $this->display('inc_skin.php', 0 , '开奖记录'); ?>
<?php $this->display('inc_header.php'); ?>
 <link rel="stylesheet" href="/skin/laofan/newlist.css">
<div class="bet-info popupModal ffffddd">
<div class="sub_ScorllCont">
  <div class="lott-list">
    <ul id="draw_list">
	<?php if($data['data']) foreach($data['data'] as $var){ ?>
      <li class="list-k3"><a href="javascript:;">
        <div class="lott-list-tit">
		<span class="f_span"><?=$typename?></span>
		<span class="gray" style="font-size: 11px;"><?=$var['number']?> <?=date('H:i', $var['time'])?></span>
		</div>
        <div class="two-ball two-lottery nums-open">
		<span class="nums">
		<?php $tmp = $var['data'] ;
			$tmp_arr = explode(',',$tmp);
			foreach($tmp_arr as $v){ if(empty($v))continue;
		?>
			<i><?=$v?></i>
		 <?php } ?>	
		 
		</span>
		</div>
        </a>
		</li>
       <?php } ?>
    </ul>
  </div>
</div>

 
<?php 
	$this->display('inc_page.php',0,$data['total'],$this->pageSize, '/index.php/index/historyList-{page}/'.$args[0]);
?>
<?php $this->display('inc_footer.php'); ?> 
</div>